//
//  NiuRen.m
//  RedManStock
//
//  Created by lanou3g on 15/7/21.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "NiuRen.h"

@implementation NiuRen

#pragma mark - 懒加载 -
- (NSString *)buyText{
    if (_buyText==nil) {
        _buyText=[NSString stringWithFormat:@"买入"];
    }
    return _buyText;
}

- (NSString *)totalText{
    if (_totalText==nil) {
        _totalText=[NSString stringWithFormat:@"总收益率"];
    }
    return _totalText;
}

- (NiuRenMember *)member{
    if (_memberSB==nil) {
        _memberSB=[[NiuRenMember alloc]init];
    }
    return _memberSB;
}

- (NiuRenTrade *)trade{
    if (_tradeSB==nil) {
        _tradeSB=[[NiuRenTrade alloc]init];
    }
    return _tradeSB;
    
}


- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    //榜单处的ranking
    if ([key isEqualToString:@"ranking"]) {
        self.rankingSB=[NSString stringWithFormat:@"%@",value];
    }
    
}

@end
